package appapi.Vo.brider;

import appapi.entity.bridge.SceneDeviceEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/09/20 10:58
 */
@ApiModel("场景设备请求对象")
@Data
public class SceneDeviceVo implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value="记录ID 新增不传")
    private Long id;

    @ApiModelProperty(value="场景id")
    private Long sceneId;
    @ApiModelProperty(value="工段Id")
    private Long sectId;

    @ApiModelProperty(value="所属项目")
    private Long projId;

    @ApiModelProperty(value="设备类别  0塔吊 1升降机 2爬模 3 挂篮 4 门禁 5 闸机 6摄像头")
    private Long deviceType;

    @ApiModelProperty(value="设备id")
    private Long deviceId;

    @ApiModelProperty(value="设备编号")
    private String deviceNo;

    @ApiModelProperty(value="现场名称")
    private String deviceActname;

    public SceneDeviceEntity entity(){
        SceneDeviceEntity entity = new SceneDeviceEntity();
        BeanUtils.copyProperties(this,entity);
        return entity;
    }
}
